package FuturesandCallables_chapt_8;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<Long> {

	@Override
	public Long call() throws Exception {
		 
		long sum = 0;
		    for (long i = 0; i <= 1000; i++) {
		      sum += i;
		    }
		    return sum;
	
	}



}
